package com.stockz.downloaderx;

import org.springframework.core.Ordered;

public interface Downloader extends Ordered{

	public interface Callback extends Ordered{
		public enum TYPE{
			START, END, SUCCESS, FAIL;
		}
		public enum EVENT{
			ALL,LOOP, DOWNLOAD, PARSE;
		}
		public void execute(Download download);
	}
	
	public void cancel();
	public boolean isRunning();
}
